From: kaf24@firebug.cl.cam.ac.uk Date: Fri, 5 May 2006 12:51:03 +0000 (+0100) Subject: Replace a bash-specific substitution with equivalent POSIX /bin/sh X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16108^2~10^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=4a0f8a20b80f94ec90b3f7f1e85e71e454072f5b;p=xen.git Replace a bash-specific substitution with equivalent POSIX /bin/sh substitutions. This allows a Xen-patched Linux to build when /bin/sh is a POSIX shell other than bash. Signed-off-by: Herbert Xu --- diff --git a/linux-2.6-xen-sparse/scripts/Makefile.xen b/linux-2.6-xen-sparse/scripts/Makefile.xen index b3ec53a18c..831f68b794 100644 --- a/linux-2.6-xen-sparse/scripts/Makefile.xen +++ b/linux-2.6-xen-sparse/scripts/Makefile.xen @@ -2,9 +2,9 @@ # cherrypickxen($1 = allobj) cherrypickxen = $(foreach var, $(1), \ $(shell o=$(var); \ - c=$${o/%.o/-xen.c}; \ - s=$${o/%.o/-xen.S}; \ - oxen=$${o/%.o/-xen.o}; \ + c=$${o%.o}-xen.c; \ + s=$${o%.o}-xen.S; \ + oxen=$${o%.o}-xen.o; \ [ -f $(srctree)/$(src)/$${c} ] || \ [ -f $(srctree)/$(src)/$${s} ] \ && echo $$oxen \